import React from 'react'

class App extends React.Component {

    constructor() {
        super()
        this.state = {
            active: true
        }
    }
  render(){
      const {active} = this.state
      //三目运算符
      return <div>
          {
              active ? <h1>今天还行</h1>:<h2>猴雷谢特</h2>
          }
      </div>
  }
}

export default App